package com.jdd.modules.dooropeningrecord.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jdd.common.util.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/**
 * @Description: 开门记录
 * @Author: jdd
 * @Date:   2022-04-14
 * @Version: V1.0
 */
@Data
@TableName("t_door_opening_record")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="t_door_opening_record对象", description="开门记录")
public class DoorOpeningRecord {


	/**进出类型*/
	@Excel(name = "进出类型", width = 15)
    @ApiModelProperty(value = "进出类型")
	private String accessType;
	/**开门通道区域*/
	@Excel(name = "开门通道区域", width = 15)
    @ApiModelProperty(value = "开门通道区域")
	private String areaId;
	/**体表温度*/
	@Excel(name = "体表温度", width = 15)
    @ApiModelProperty(value = "体表温度")
	private String bodySurfaceTemperature;
	/**卡号*/
	@Excel(name = "卡号", width = 15)
    @ApiModelProperty(value = "卡号")
	private String cardNumber;
	/**设备序列号*/
	@Excel(name = "设备序列号", width = 15)
    @ApiModelProperty(value = "设备序列号")
	private String deviceId;
	/**设备名称*/
	@Excel(name = "设备名称", width = 15)
    @ApiModelProperty(value = "设备名称")
	private String deviceName;
	/**开门结果*/
	@Excel(name = "开门结果", width = 15)
    @ApiModelProperty(value = "开门结果")
	private String doorOpeningResult;
	/**开门类型*/
	@Excel(name = "开门类型", width = 15)
    @ApiModelProperty(value = "开门类型")
	private Integer doorOpeningType;
	/**id*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "id")
	private String id;
	/**标签*/
	@Excel(name = "标签", width = 15)
    @ApiModelProperty(value = "标签")
	private String label;
	/**姓名*/
	@Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
	private String name;
	/**开门时间*/
	@Excel(name = "开门时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开门时间")
	private Date openingTime;
	/**电话号码*/
	@Excel(name = "电话号码", width = 15)
    @ApiModelProperty(value = "电话号码")
	private String phoneNumber;
	/**项目名称*/
	@Excel(name = "项目名称", width = 15)
    @ApiModelProperty(value = "项目名称")
	private String projectName;

	@Excel(name = "项目名称", width = 15)
	@ApiModelProperty(value = "项目名称")
	private Date createTime;

	@Excel(name = "抓拍图片", width = 15)
	@ApiModelProperty(value = "抓拍图片")
	private String img;

	@Excel(name = "数字权限", width = 15)
	@ApiModelProperty(value = "数字权限")
	private String sysProjectCode;

	@Excel(name = "项目Id", width = 15)
	@ApiModelProperty(value = "项目id")
	private String projectId;

	@TableField(exist = false)
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date opTime_begin;

	@TableField(exist = false)
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date opTime_end;
}
